From: Rob Hoes Date: Mon, 9 Dec 2013 15:17:30 +0000 (+0000) Subject: libxl: ocaml: remove dead code in xentoollog bindings X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5777 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22%22?a=commitdiff_plain;h=f290d0cb3142606faf13dc9bc76766631cc17e92;p=xen.git libxl: ocaml: remove dead code in xentoollog bindings Found by Coverty. CIDs: 1128567 1128568 1128576 1128577. Signed-off-by: Rob Hoes Reviewed-by: Andrew Cooper Acked-by: David Scott Acked-by: Ian Campbell --- diff --git a/tools/ocaml/libs/xentoollog/xentoollog_stubs.c b/tools/ocaml/libs/xentoollog/xentoollog_stubs.c index 3b2f91bf9f..122ed0de4f 100644 --- a/tools/ocaml/libs/xentoollog/xentoollog_stubs.c +++ b/tools/ocaml/libs/xentoollog/xentoollog_stubs.c @@ -87,8 +87,6 @@ static void stub_xtl_ocaml_vmessage(struct xentoollog_logger *logger, value *func = caml_named_value(xtl->vmessage_cb) ; char *msg; - if (args == NULL) - caml_raise_out_of_memory(); if (func == NULL) caml_raise_sys_error(caml_copy_string("Unable to find callback")); if (vasprintf(&msg, format, al) < 0) @@ -116,8 +114,6 @@ static void stub_xtl_ocaml_progress(struct xentoollog_logger *logger, struct caml_xtl *xtl = (struct caml_xtl*)logger; value *func = caml_named_value(xtl->progress_cb) ; - if (args == NULL) - caml_raise_out_of_memory(); if (func == NULL) caml_raise_sys_error(caml_copy_string("Unable to find callback"));